BeforeStartTransactionCallback

The callback that is invoked before the network transaction starts.

The callback can be used to override the HTTP headers before they are sent out.

Use the override method to modify the HTTP headers.

Use the proceed method if you do not need to modify the headers.

If the callback throws an exception, the proceed method will be invoked.

Types

Link copied to clipboard
interface Params
The parameters of the BeforeStartTransactionCallback.
Link copied to clipboard
interface Response

Functions

Link copied to clipboard
abstract fun on(params: P): R
Invoked when the callback needs a response of type R that may be determined based on the provided callback parameters.